package com.pxst.agent.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Objects;

@Data
public class RebateCreateReq<T> {

    @NotBlank(message = "回扣方案名称不能为空")
    @ApiModelProperty(value = "回扣方案名称", required = true)
    private String name;

    @NotNull(message = "回扣方案类型不能为空")
    @ApiModelProperty(value = "回扣方案类型", required = true)
    private Integer type;

    @NotNull(message = "返点规则不能为空")
    @ApiModelProperty(value = "返点规则", required = true)
    private List<T> details;
}
